﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BinaryTree
{
    public class treeNode//:IElement
    {
        public int value;
        public treeNode left;
        public treeNode right;

        public treeNode(int val)
        {
            value = val;
            left = null;
            right = null;
        }
        public treeNode()
        {
        }
        public treeNode(int val, treeNode _left, treeNode _right)
        {
            value = val;
            left = _left;
            right = _right;
        }
        //public void Accept(IVisit operation)
        //{
        //    operation.Visit(this);
        //}
    }
}
